﻿@model IEnumerable<K3TOOLS.Models.apitest1>
@{
    ViewData["Title"] = "测试页面";
}

<script src="~/lib/jquery/dist/jquery.js"></script>
<div class="container">
    <div class="panel panel-info">
        <div class="panel-heading">
            <h2>测试页面</h2>
        </div>
        <div class="panel-body">
            <table class="table table-bordered table-hover table-striped">
                <tr class="info">
                    <th>序号</th>
                    <th>姓名</th>
                    <th>创建时间</th>
                </tr>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.id</td>
                        <td>@item.name</td>
                        <td>@item.create_time</td>
                    </tr>

                }

            </table>
            <a class="btn btn-success" id="TestButton">测试</a>
        </div>
        <div class="panel-footer">

        </div>
    </div>
</div>
<script>
    $("#TestButton").on("click", function () {
        
        Submit();
    })

    function Submit() {
        var obj = new Object();
        var sysOrgAffiliation = new Object();
        sysOrgAffiliation.code = "sd";
        sysOrgAffiliation.code = "sd";
        sysOrgAffiliation.name = "gds";
        sysOrgAffiliation.sys_org_id = "2f30a113-bcf9-4bc6-a042-fc6d044ba2f9";
        sysOrgAffiliation.sys_org_name = "test1111";
        sysOrgAffiliation.remark = "";
        sysOrgAffiliation.data_status = "10";
        sysOrgAffiliation.is_deleted = "0";
        sysOrgAffiliation.start_date = "2035/5/10";
        sysOrgAffiliation.end_date = "2035/5/10";
        sysOrgAffiliation.end_date = "2035/5/10";
        obj.sysOrgAffiliation = sysOrgAffiliation;
        console.log(obj);

    }
</script>
